import request from '@/utils/request'

// 查询化源网数据列表
export function listChemsrc(query) {
  return request({
    url: 'service-ry/metaRef/Chemsrc/list',
    method: 'get',
    params: query
  })
}

// 查询化源网数据详细
export function getChemsrc(id) {
  return request({
    url: 'service-ry/metaRef/Chemsrc/' + id,
    method: 'get'
  })
}

// 新增化源网数据
export function addChemsrc(data) {
  return request({
    url: 'service-ry/metaRef/Chemsrc',
    method: 'post',
    data: data
  })
}

// 修改化源网数据
export function updateChemsrc(data) {
  return request({
    url: 'service-ry/metaRef/Chemsrc',
    method: 'put',
    data: data
  })
}

// 删除化源网数据
export function delChemsrc(id) {
  return request({
    url: 'service-ry/metaRef/Chemsrc/' + id,
    method: 'delete'
  })
}

// 导出化源网数据
export function exportChemsrc(query) {
  return request({
    url: 'service-ry/metaRef/Chemsrc/export',
    method: 'get',
    params: query
  })
}